package com.neulogistics.infrastructure.common.rpc.client;

import com.neulogistics.infrastructure.common.serviceresult.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("ProcuredCenter")
public interface ProcuredCenterClient {
    @PostMapping("/procuredCenter/purchaseOrder/purchase")
    BaseResponse<Boolean> purchase(Object purchaseCommand);

    @GetMapping("/procuredCenter/goods/checkReturn/{goodsId}")
    BaseResponse<Boolean> checkGoodsCanReturn(@PathVariable(value = "goodsId") Integer goodsId);

    @GetMapping("/procuredCenter/goods/checkExchange/{goodsId}")
    BaseResponse<Boolean> checkGoodsCanExchange(@PathVariable(value = "goodsId") Integer goodsId);
}
